Register-Lib -Name Microsoft.SharePoint.PowerShell `
    -InitAction { 
    	Write-Progress -Activity "Ensuring that the Microsoft.SharePoint.PowerShell snapin is loaded" -Status "This snapin takes a while to load"
        $time = Measure-Command {  Ensure-PSSnapin Microsoft.SharePoint.PowerShell }
        Log "took $($time.TotalSeconds) seconds"
     } 
